<%@include file="/jsps/vijayan/profile/init.jsp"%>
<portlet:actionURL var="editProfile">
	<portlet:param name="<%= ProfileConstants.ACTION %>" value="<%= ProfileConstants.EDIT_PROFILE %>" />
</portlet:actionURL>
<portlet:renderURL var="listURL" />
<%
	long profileId = ParamUtil.getLong(renderRequest, ProfileConstants.PROFILE_ID);
	Profile profile = ProfileLocalServiceUtil.createProfileObj();
	if (Validator.isNotNull(profileId)) {
		profile = ProfileLocalServiceUtil.getProfile(profileId);
	}
%>
<aui:form action="<%= editProfile %>" name="addProfile" method="post"> 
	<aui:model-context bean="<%= profile %>" model="<%= Profile.class %>" />
	<aui:input name="createdForMy" />
	<aui:input name="profileName" />
	<aui:input name="gender" />
	<aui:input name="dateOfBirth" />
	<aui:button name="Submit" type="Submit" value="Submit" />
	<aui:button name="Cancel" type="button" value="Cancel" onClick="listURL"/>
</aui:form>
